package com.zbiti.module.system.base.api.mda.domain;

import com.zbiti.framework.mda.common.annotation.MdaRequest;
import com.zbiti.framework.mda.common.annotation.MdaColumn;
import com.zbiti.framework.mda.common.annotation.MdaForeignKey;
import com.zbiti.framework.mda.common.annotation.MdaKey;
import com.zbiti.framework.mda.common.annotation.MdaTable;
import com.zbiti.framework.mda.common.domain.MdaDomain;
import com.zbiti.sdk.common.enums.IdType;
import com.zbiti.sdk.common.annotation.Excel;
import com.zbiti.sdk.common.annotation.TableId;

import java.math.BigDecimal;

/**
 * produce
 *
 * @author generator
 * @date 2025-04-08 10:28:13
 */
@MdaRequest(path = "/system/produce")
@MdaTable(name = "produce", desc = "produce")
public class ProduceMdaDomain extends MdaDomain {

    /**
     * id
     */
    @MdaKey(type = IdType.AUTO)
    @MdaColumn(name = "id", desc = "id", isNull = false)
    @TableId
    @Excel(name = "id")
    private Long id;

    /**
     * SKU编码
     */
    @MdaColumn(name = "sku", desc = "SKU编码")
    @Excel(name = "SKU编码")
    private String sku;

    /**
     * 商品名称
     */
    @MdaColumn(name = "product_name", desc = "商品名称")
    @Excel(name = "商品名称")
    private String productName;

    /**
     * 商品分类
     */
    @MdaColumn(name = "category", desc = "商品分类")
    @Excel(name = "商品分类")
    private String category;

    /**
     * 单价
     */
    @MdaColumn(name = "unit_price", desc = "单价")
    @Excel(name = "单价")
    private BigDecimal unitPrice;


    /**
     * 获取id
     *
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置id
     *
     * @param id id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取SKU编码
     *
     * @return SKU编码
     */
    public String getSku() {
        return sku;
    }

    /**
     * 设置SKU编码
     *
     * @param sku SKU编码
     */
    public void setSku(String sku) {
        this.sku = sku;
    }

    /**
     * 获取商品名称
     *
     * @return 商品名称
     */
    public String getProductName() {
        return productName;
    }

    /**
     * 设置商品名称
     *
     * @param productName 商品名称
     */
    public void setProductName(String productName) {
        this.productName = productName;
    }

    /**
     * 获取商品分类
     *
     * @return 商品分类
     */
    public String getCategory() {
        return category;
    }

    /**
     * 设置商品分类
     *
     * @param category 商品分类
     */
    public void setCategory(String category) {
        this.category = category;
    }

    /**
     * 获取单价
     *
     * @return 单价
     */
    public BigDecimal getUnitPrice() {
        return unitPrice;
    }

    /**
     * 设置单价
     *
     * @param unitPrice 单价
     */
    public void setUnitPrice(BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }
}
